package com.asin.service.impl;

import com.asin.dao.PaymentDao;
import com.asin.entities.Payment;
import com.asin.service.PaymentService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public  int  create(Payment payment){
       return paymentDao.create(payment);
    }
    public  Payment  getPaymentById(long id){
        return paymentDao.getPaymentById(id);
    }
}
